import 'package:flutter/material.dart';
import 'bloc_counter_demo.dart';

// BloC:Business logic component
class BlocDemo extends StatelessWidget {
  const BlocDemo({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return CounterProvider(
      bloc: CounterBloc(),
      child: Scaffold(
        appBar: AppBar(
          title: Text('BlocDemo'),
          elevation: 0.0,
        ),
        body: CouterHome(),
        floatingActionButton: CouterActionButton(),
      ),
    );
  }
}
